﻿using System;
using System.Collections.Generic;
using System.Text;
using OpenLab.DAL;
using OpenLab.Model;

namespace OpenLab.BLL
{

    public partial class TubeBLL
    {
        public Tube Add(Tube tube)
        {
            return new TubeDAL().Add(tube);
        }

        public int DeleteById(int id)
        {
            return new TubeDAL().DeleteById(id);
        }

		public int Update(Tube tube)
        {
            return new TubeDAL().Update(tube);
        }
        

        public Tube GetById(int id)
        {
            return new TubeDAL().GetById(id);
        }
		public int GetTotalCount()
		{
			return new TubeDAL().GetTotalCount();
		}
		
		public IEnumerable<Tube> GetPagedData(int minrownum,int maxrownum)
		{
			return new TubeDAL().GetPagedData(minrownum,maxrownum);
		}
		
		public IEnumerable<Tube> GetAll()
		{
			return new TubeDAL().GetAll();
		}
    }
}
